#include<iostream>
#include<func.h>
using namespace std;
class student{
public:
    student(char *name,int stu_id)
    :_stu_id(stu_id)
    {
        strcpy(_name,name);
    }
private:
    char _name[1024];
    int _stu_id;
};
class student1{
public:
    student1(char *name,int stu_id)
    :_name(new char[strlen(name)+1]) //初始化
    ,_stu_id(stu_id)
    {
        strcpy(_name,name); //赋值
    }
private:
    char *_name;
    int _stu_id;
};
int main(void)
{
    
}